﻿package com.dykj.platform.framework.dao.hibernate;

import java.io.Serializable;

import com.dykj.platform.framework.exception.DatabaseException;

public interface IPublicDBAccess {
	public void save(Object obj) throws DatabaseException;

	public void update(Object obj) throws DatabaseException;

	public void saveOrUpdate(Object obj) throws DatabaseException;

	public void delete(Object obj) throws DatabaseException;
	
	public void delByKey(Class entityClass, Serializable key) throws DatabaseException;
	
	public Object getObject(Class entityClass, Serializable id)throws DatabaseException;
	
	public Object loadObject(Class entityClass, Serializable id)throws DatabaseException;
	
	public String getKeyIndex(String key,String table)throws DatabaseException;
}
